package com.yq588.demo.config;

import cn.hutool.poi.excel.ExcelReader;
import cn.hutool.poi.excel.ExcelUtil;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Main {
    public static void main(String[] args) {

        List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
        Map<String, Object> map = new HashMap<String, Object>();

        ExcelReader reader = ExcelUtil.getReader("d:/aaa.xlsx");
        List<Map<String, Object>> readAll = reader.readAll();

        for (Map<String, Object> stringObjectMap : readAll) {
            final String name = stringObjectMap.get("姓名").toString();
            System.out.println(name);
        }

    }

}


